<?php
if (isset($judul_halaman))
    $this->load->view('header1', array('judul_halaman' => $judul_halaman));
//$this->load->view('leftSideBar1',array('judul_halaman'=>$judul_halaman));
else
    $this->load->view('header1');
//$this->load->view('leftSideBar1');
?>
<body>
    <div class="container-fluid">
        <div class="row">
            <?php $this->load->view('leftSideBar1'); ?>
            <div class="col-sm-8 col-sm-offset-4 col-md-9 col-md-offset-3 main">
                <?php $this->load->view('menu_atas_1'); ?>
                <div style="margin-left: 50px;">
                    <h1 class="page-header">Tambahkan Soal</h1>
                </div>
                <div class="row placeholders">
                    <form method="post" action="<?= base_url(); ?>braintest/buatSoal" class="cmxform form-horizontal">
                        <table style="margin-left: 10%;" class="tabel1">
                            <tr>
                                <td>
                                    <label class="control-label col-lg-3">Soal</label>
                                </td>
                                <td>
                                    <textarea name="teks_soal" class="" rows="5" cols="50" style="color: #000; border-color: #7eddf9"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <label class="control-label col-lg-3">Pilihan</label>
                                </td>
                                <td>
                                    
                                    <table>
                                        <tr>
                                            <td>
                                                <textarea name="pilihan[]" class="" rows="2" cols="50" style="color: #000; border-color: #7eddf9"></textarea>
                                            </td>
                                        </tr>
                                    </table>
                                    
                                    
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="tombol"><button class="btn btn-info" type="button">Tambah Pilihan</button></div>
                                    <div class="tombol"><button class="btn btn-primary" type="submit">Simpan Soal</button></div>
                                </td>
                            </tr>
                            <tr><td></td></tr>
                            <tr>
                                <td></td>
                                <td>

                                </td>
                            </tr>
                        </table>


                    </form>
                </div>


            </div>
        </div>

    </div>
    <style>
        table.tabel1 tr td{
            padding-bottom: 8px;
            padding-top:    8px;
        }
        .tombol{
            margin: 5px;
        }
    </style>
    <?php
    $this->load->view('footer1');
    ?>
    <script>
        var tanggalan = $('.datepicker').datepicker({
            format: 'dd-mm-yyyy'
        }).on('changeDate', function(ev) {
            tanggalan.hide();
        }).data('datepicker');
    </script>
